/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question3.correctingSRP.Impl;

import za.ac.cput.assignment2.question3.correctingSRP.Sale;

/**
 *
 * @author Ziyaad
 */
public class SaleImpl implements Sale{
    
    private long saleNumber;
    private String date;
    private int quantity;
    private double itemPrice;
    

    
    public void setSaleNumber(long num) {
        saleNumber = num;
    }

    
    public void setDate(String date) {
        this.date = date;
    }

    
    public String getDate() {
        return this.date;
    }

    
    public long getSaleNumber() {
        return saleNumber;
    }

   
    public void setQuantity(int qty) {
       quantity = qty;
    }

    
    public int getQuantity() {
        return quantity ;
    }

    @Override
    public double getPaymentAmount() {
       return itemPrice * quantity;
    }

    /**
     * @return the itemPrice
     */
    public double getItemPrice() {
        return itemPrice;
    }

    /**
     * @param itemPrice the itemPrice to set
     */
    public void setItemPrice(double itemPrice) {
        this.itemPrice = itemPrice;
    }
    
}
